"""
类型注解是方便静态类型检查工具，提供数据类型的注解，
可以方便IDE工具做代码提示
"""

# 基础数据类型注解
val1: int = 10
val2: float = 20
val3: bool = True
val4: str = ":123"

# 类对象类型注解
class Student:
    pass
stu: Student = Student()

# 基础容器类型注解
my_list: list = [1,2,3]
my_tuple: tuple = (1,2,3)
my_set: set = {1,2,212,87,2,3,5,4}
my_dict: dict = {"name":"gaoyang","age":23}
my_str: str = "hello"

# 容器类型详细注解
my_list: list[int] = [1,2,3]
my_tuple: tuple[str,int,bool] = ("1",2,True)
my_set: set[int] = {1,2,212,87,2,3,5,4}
my_dict: dict[str,int] = {"name":"gaoyang","age":23}
